package com.qfedu.edu.result;

/**
 * @author xiaobobo
 * @title: ResponseCode
 * @projectName cd-fy-2401-third-project-parent
 * @description: 这个就是消息枚举
 * @date 2024/9/13  14:47
 */
public enum ResponseCode {

    SUCCESS(0, "请求成功"),
    LOGIN_EXCEPTION(100, "登陆失败"),
    SQL_EXCEPTION(101, "SQL异常"),
    SYSTEM_EXCEPTION(102, "系统异常"),
    SMS_SEND_EXCEPTION(103, "短信发送失败"),
    SLOT_INVOKE_EXCEPTION(104, "slot执行异常"),
    PARAMETER_EXCEPTION(105, "参数有误不能执行业务"),
    TENANT_ID_EXCEPTION(106, "租户id有误不能更新数据!!!"),
    PRODUCT_ID_EXCEPTION(107, "产品id有误，不能查询数据"),
    ORDER_NUMBER_EXCEPTION(108, "订单号有误"),
    AUTHENTICATION_EXCEPTION(401, "身份校验失败"),
    NO_PERMISSION_EXCEPTION(403, "没有权限访问这个方法"),
    FAIL(-1, "请求失败");

    private Integer code;

    private String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
